﻿<?xml version="1.0" encoding="utf-8"?>
<CodeSnippet Format="1.0.0" xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
  <Header>
    <Title>DevGridViewRowNo</Title>
    <Author>jinlei</Author>
    <Shortcut>DevGridViewRowNo</Shortcut>
    <Description>DevGridViewRowNo</Description>
    <SnippetTypes>
      <SnippetType>SurroundsWith</SnippetType>
      <SnippetType>Expansion</SnippetType>
    </SnippetTypes>
  </Header>
  <Snippet>
    <Declarations>
      <Literal>
        <ID>DevGridViewRowNo</ID>
        <Default>DevGridViewRowNo</Default>
      </Literal>
    </Declarations>
    <Code Language="XML">
      <![CDATA[if (e.Info.IsRowIndicator && e.RowHandle > -1)
            {
                e.Info.DisplayText = (e.RowHandle + 1).ToString();
            }]]>
    </Code>
  </Snippet>
</CodeSnippet>